-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: adapt contract when fetching all option lists to visualize error per option list #14269
refactor: adapt contract when fetching all option lists to visualize error per option list #14269
Conversation
13df12e
to
9ef1ecd
Compare
9ef1ecd
to
bf44f5a
Compare
0273996
to
6caaae9
Compare
6caaae9
to
180f682
Compare
...udio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListPage.test.tsx
Fixed
Show fixed
Hide fixed
efca53c
to
6988b6d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14269 +/- ##
=======================================
Coverage 95.53% 95.53%
=======================================
Files 1859 1859
Lines 24076 24091 +15
Branches 2777 2779 +2
=======================================
+ Hits 23001 23016 +15
Misses 817 817
Partials 258 258 ☔ View full report in Codecov by Sentry. |
2852847
to
9da552c
Compare
TestingStudio crashed when uploading this code list in Gitea:
With the following error:
The error still occurs when:
Are you able to reproduce this? This was tested in localhost. |
Hm, I tested locally now, and I am not able to reproduce it 🤔 It actually looks like the backend does not care about additional properties so I do not get any error at all. The error occurs if trying to set an object e.g. as the value for the value-key. But I did try setting the label-value to an object and removing the label-field; both results in 500 in backend, which is not suppose to happen. But I guess that is issue that exists from before. On the other hand, this PR might be the correct place to fix it tho 🤷 |
I tried restarting the local dev servers, and that seemed to fix it. My bad. I also noticed that trailing commas in the JSON file resulted in a 500 error, which caused the frontend error I think we should collect the 500 errors in a different issue, since it's not part of your scope 😊 Edit: see new issue here - #14351 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test OK 👍
Description
data
prop is swapped with thehasError
prop.Related Issue(s)
Verification